/* VClasses Landing Page - Professional CSS */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --main-color: #FF6600;
    --secondary-color: #E80009;
    /* Derived palette from base colors */
    --main-50: hsl(from var(--main-color) h 100% 97%);
    --main-100: hsl(from var(--main-color) h 95% 92%);
    --main-200: hsl(from var(--main-color) h 90% 85%);
    --main-300: hsl(from var(--main-color) h 85% 75%);
    --main-400: hsl(from var(--main-color) h 80% 65%);
    --main-500: var(--main-color);
    --main-600: hsl(from var(--main-color) h 90% 45%);
    --main-700: hsl(from var(--main-color) h 95% 35%);
    --main-alpha-20: color-mix(in srgb, var(--main-color) 20%, transparent);
    --main-alpha-30: color-mix(in srgb, var(--main-color) 30%, transparent);
    --main-alpha-60: color-mix(in srgb, var(--main-color) 60%, transparent);

    --secondary-50: hsl(from var(--secondary-color) h 100% 97%);
    --secondary-100: hsl(from var(--secondary-color) h 95% 92%);
    --secondary-300: hsl(from var(--secondary-color) h 85% 70%);
    --secondary-500: var(--secondary-color);
    --secondary-700: hsl(from var(--secondary-color) h 90% 40%);
    --secondary-alpha-20: color-mix(in srgb, var(--secondary-color) 20%, transparent);
    --secondary-alpha-35: color-mix(in srgb, var(--secondary-color) 35%, transparent);

    /* Accent derived from main for lighter chips */
    --accent-color: hsl(from var(--main-color) h 85% 62%);
    /* Added accent aliases used by courses section */
    --accent-primary: var(--main-color);
    --accent-secondary: var(--secondary-color);
    /* Light background chip derived from main color */
    --accent-light: color-mix(in srgb, var(--main-color) 12%, #ffffff 88%);

    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Dark Theme Colors */
    --dark-bg-primary: #111111;
    --dark-bg-secondary: #1E293B;
    --dark-bg-tertiary: #334155;
    --dark-text-primary: #F8FAFC;
    --dark-text-secondary: #94A3B8;
    --dark-text-tertiary: #64748B;
    --dark-border-color: #334155;
    --dark-shadow-color: rgba(0, 0, 0, 0.3);

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
    --shadow-2xl: 0 25px 50px -12px var(--shadow-color);
    --glow-primary: 0 0 20px color-mix(in srgb, var(--main-color) 30%, transparent);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* Dark Theme Variables */
.dark-theme {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-tertiary: var(--dark-text-tertiary);
    --border-color: var(--dark-border-color);
    --shadow-color: var(--dark-shadow-color);
    /* Keep the same accent colors in dark */
    --accent-primary: var(--main-color);
    --accent-secondary: var(--secondary-color);
    --accent-light: rgba(255, 107, 53, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-fixed);
    width: 95%;
    max-width: 1200px;
    animation: navbarSlideDown 0.8s ease-out;
    visibility: visible;
    opacity: 1;
}

.navbar-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: var(--space-lg);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
    transition: all var(--transition-normal);
}

.navbar-container:hover {
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    width: 100%;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    order: 1;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-logo .theme-toggle {
    margin-left: var(--space-sm);
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    order: 2;
    flex-shrink: 0;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    order: 3;
    flex-shrink: 0;
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Ensure buttons and icons are visible on desktop */
@media (min-width: 769px) {
    .navbar-buttons {
        display: flex !important;
    }

    .navbar-icons {
        display: flex !important;
    }
}

/* ===== LOGO STYLES ===== */
.logo-fox {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.logo-fox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.logo-fox:hover {
    transform: scale(1.05);
}

.logo-fox:hover img {
    transform: scale(1.1);
}

.logo-book {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 14px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-fox-head {
    width: 28px;
    height: 28px;
    background: var(--main-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.fox-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 6px;
}

.fox-eye-left {
    left: 6px;
}

.fox-eye-right {
    right: 6px;
}

.fox-nose {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.logo-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-left: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.swiper {
    margin-bottom: 15px;
}


.btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* Ensure button icons are visible */
.btn [data-lucide] {
    display: block !important;
    width: 16px;
    height: 16px;
}

/* Navbar button icons */
.navbar-buttons .btn i {
    width: 18px !important;
    height: 18px !important;
    margin-right: var(--space-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-buttons .btn [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    margin-right: var(--space-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Lucide icons specific */
.navbar-buttons .lucide {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback for icons if Lucide doesn't load */
.navbar-buttons .btn i[data-lucide="book-open"]::before {
    content: "📖";
    font-size: 16px;
}

.navbar-buttons .btn i[data-lucide="play"]::before {
    content: "▶";
    font-size: 16px;
}

/* RTL Support for navbar button icons */
[dir="rtl"] .navbar-buttons .btn i {
    margin-right: 0;
    margin-left: var(--space-sm);
}

[dir="rtl"] .navbar-buttons .btn [data-lucide] {
    margin-right: 0;
    margin-left: var(--space-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: color-mix(in srgb, var(--main-color) 10%, transparent);
    color: #ffffff;
    border: 1px solid var(--main-500);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--main-color) 20%, white 10%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--main-alpha-30);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-500);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* ===== ICON BUTTONS ===== */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--main-alpha-20);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.icon-btn:hover::before {
    width: 100%;
    height: 100%;
}

.icon-btn i {
    width: 24px;
    height: 24px;
    z-index: 1;
    position: relative;
    display: block;
}

/* Ensure Lucide icons are visible */
[data-lucide] {
    display: block !important;
    width: 24px;
    height: 24px;
}

/* Badges */
.notification-badge,
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    z-index: 2000;
    pointer-events: none;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    flex-shrink: 0;
}

.theme-switch {
    display: none;
}

.theme-toggle-container {
    cursor: pointer;
    transition: all var(--transition-normal);
    display: block;
    position: relative;
}

.theme-toggle-container:hover {
    transform: scale(1.05);
}

.theme-toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, var(--main-300) 0%, var(--secondary-300) 100%);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.theme-toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-full);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, white 0%, #F8FAFC 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.theme-toggle-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 2;
}

.theme-toggle-icon-sun {
    color: #F59E0B;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon-moon {
    color: #6366F1;
    opacity: 0;
    transform: scale(0.8) rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode styles */
.theme-switch:checked+.theme-toggle-container .theme-toggle-track {
    background: linear-gradient(135deg, var(--secondary-700) 0%, var(--main-700) 100%);
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-track::before {
    opacity: 1;
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-thumb {
    transform: translateX(30px);
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-icon-sun {
    opacity: 0;
    transform: scale(0.8) rotate(-180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:not(:checked)+.theme-toggle-container .theme-toggle-icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:checked+.theme-toggle-container .theme-toggle-icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:not(:checked)+.theme-toggle-container .theme-toggle-icon-moon {
    opacity: 0;
    transform: scale(0.8) rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE NAVIGATION MENU ===== */
.nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    z-index: var(--z-modal);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    overflow-y: auto;
}

.nav-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Content */
.mobile-menu-content {
    width: 100%;
    max-width: 420px;
    padding: 56px var(--space-xl) var(--space-xl) var(--space-xl);
    position: relative;
    background: color-mix(in srgb, white 85%, transparent);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

/* Decorative gradient border glow */
.mobile-menu-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--secondary-color) 70%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.35;
}

/* Mobile Close Button */
.mobile-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-close-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    color: var(--main-color);
    transform: scale(1.1);
}

.mobile-close-btn i {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Items */
.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

/* Mobile Menu Item */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    text-align: left;
    transform: translateY(6px);
    opacity: 0;
}

.nav-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu.active .mobile-menu-item:nth-child(1) {
    transition: 300ms ease 40ms;
}

.nav-menu.active .mobile-menu-item:nth-child(2) {
    transition: 300ms ease 90ms;
}

.nav-menu.active .mobile-menu-item:nth-child(3) {
    transition: 300ms ease 140ms;
}

.nav-menu.active .mobile-menu-item:nth-child(4) {
    transition: 300ms ease 190ms;
}

.nav-menu.active .mobile-menu-item:nth-child(5) {
    transition: 300ms ease 240ms;
}

.nav-menu.active .mobile-menu-item:nth-child(6) {
    transition: 300ms ease 290ms;
}

.nav-menu.active .mobile-menu-item:nth-child(7) {
    transition: 300ms ease 340ms;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: color-mix(in srgb, var(--main-color) 40%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.18);
}

.mobile-menu-item:hover .menu-item-text {
    color: var(--text-primary);
}

.mobile-menu-item.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.mobile-menu-item.primary .menu-item-text {
    color: white;
}

.mobile-menu-item.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* Menu Item Icon */
.menu-item-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.12);
    border-radius: 50%;
    color: var(--main-color);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.15);
}

.mobile-menu-item.primary .menu-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-item-icon i {
    width: 20px;
    height: 20px;
    display: block !important;
}

/* Item Badge */
.item-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Menu Item Text */
.menu-item-text {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    color: black;
    transition: var(--transition);
}

/* Dark theme adjustments for mobile nav */
[data-theme="dark"] .nav-menu {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mobile-menu-content {
    background: rgba(32, 32, 32, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    outline-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mobile-menu-content::after {
    opacity: 0.25;
}

[data-theme="dark"] .mobile-menu-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .mobile-menu-item:hover .menu-item-text {
    color: var(--text-primary);
}

[data-theme="dark"] .menu-item-icon {
    background: rgba(255, 102, 0, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.25);
}

[data-theme="dark"] .mobile-menu-item.primary .menu-item-icon {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .menu-item-text {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu-item.primary .menu-item-text {
    color: white;
}

/* Small screens refinements */
@media (max-width: 768px) {
    .mobile-menu-content {
        max-width: 90vw;
        padding: 56px var(--space-lg) var(--space-lg) var(--space-lg);
        border-radius: 20px;
    }

    .mobile-menu-item {
        padding: var(--space-sm) var(--space-md);
    }

    .menu-item-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: var(--space-md);
    }

    .mobile-menu-content {
        max-width: 100%;
        padding: 56px var(--space-md) var(--space-md) var(--space-md);
        border-radius: 18px;
    }

    .menu-item-text {
        font-size: 0.95rem;
    }
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .mobile-menu-item {
    text-align: right;
}

[dir="rtl"] .menu-item-icon {
    order: 2;
}

[dir="rtl"] .menu-item-text {
    order: 1;
    text-align: right;
}

/* Theme Icons */
.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-icon-moon {
    opacity: 0;
}

.dark-theme .theme-icon-sun {
    opacity: 0;
}

.dark-theme .theme-icon-moon {
    opacity: 1;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
    transform: scale(1.1);
}

.mobile-menu-close i {
    width: 20px;
    height: 20px;
}

/* Mobile Icons Section */
.mobile-icons-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
    max-width: 300px;
}

/* Mobile Buttons Section */
.mobile-buttons-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
    max-width: 300px;
}

/* Mobile Icon Button */
.mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mobile-icon-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.mobile-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Button */
.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 50px;
}

.mobile-btn i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.mobile-btn-outline {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-btn-outline:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--text-primary);
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.mobile-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .mobile-btn {
    text-align: center;
}

[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: var(--space-lg);
}

.nav-menu a {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.nav-menu a i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Ensure mobile menu icons are visible */
.nav-menu a [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--main-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .nav-menu a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PANELS ===== */
.notifications-panel,
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: var(--z-modal);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

/* ===== AUTH PAGES (Login / Signup) ===== */
.auth-page {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 520px;
}

.auth-card .modal-header {
    padding: 1.5rem 2rem 1rem;
}

.auth-card .auth-form {
    padding: 1.5rem 2rem;
    display: block;
}

.auth-card .modal-footer {
    padding: 1rem 2rem 2rem;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1.25rem;
    }

    .auth-card {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        border-radius: var(--border-radius);
    }
}

[data-theme="dark"] .auth-card {
    background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Auth form alerts */
.form-alert {
    margin: 0 2rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.form-alert.error {
    display: block;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.form-alert.success {
    display: block;
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

/* ===== Auth controls styling ===== */
.auth-card .modal-title {
    font-weight: 800;
}

.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-card .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-card .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

[dir="rtl"] .auth-card .input-wrapper i {
    left: auto;
    right: 1rem;
}

.auth-card .input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

[dir="rtl"] .auth-card .input-wrapper input {
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.auth-card .input-wrapper input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.auth-card .password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

[dir="rtl"] .auth-card .password-toggle {
    right: auto;
    left: 0.5rem;
}

.auth-card .password-toggle:hover {
    color: var(--main-color);
    background: var(--bg-tertiary);
}

.auth-card .submit-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-card .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.05);
}

.auth-card .modal-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.auth-card .modal-footer .social-btn {
    text-decoration: none;
}

.auth-card [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

/* ===== AUTH MODAL (overlay, container, tabs) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: min(980px, 94%);
    max-width: 980px;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-primary));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    transform: translateY(10px) scale(0.98);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.4rem
}

.modal-close {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition)
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--main-color);
}

.modal-close i {
    width: 18px;
    height: 18px;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.auth-form {
    display: none;
    padding: 1.25rem 1.5rem;
}

.auth-form.active {
    display: block;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-footer p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.modal-footer .social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-btn {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.social-btn i {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .modal-container {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-secondary));
    border-color: rgba(255, 255, 255, 0.08)
}

/* Larger form paddings and grid */
.auth-card .modal-tabs {
    padding: 0 2rem
}

.auth-card .auth-form {
    padding: 1.5rem 2rem
}

.auth-card .form-group {
    margin-bottom: 1.25rem
}

.auth-card .submit-btn {
    height: 52px;
    font-size: 1rem
}

@media (max-width: 768px) {
    .modal-container {
        width: 96%;
        max-width: 96%
    }

    .auth-card .auth-form {
        padding: 1.25rem 1.25rem
    }
}

[data-theme="dark"] .modal-close {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.06);
}

.modal-container [data-lucide] {
    display: block !important;
}

/* ===== Form controls inside modal (shared with auth-card) ===== */
.modal-container .form-group {
    margin-bottom: 1rem;
}

.modal-container .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-container .input-wrapper svg {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

[dir="rtl"] .modal-container .input-wrapper svg {
    left: auto;
    right: 1rem;
}

.modal-container .input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

[dir="rtl"] .modal-container .input-wrapper input {
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.modal-container .input-wrapper input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.modal-container .password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Password toggle icon sizing */
.modal-container .password-toggle svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .modal-container .password-toggle {
    right: auto;
    left: 0.5rem;
}

.modal-container .password-toggle:hover {
    color: var(--main-color);
    background: var(--bg-tertiary);
}

.modal-container .submit-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.05);
}

.demo-login-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.demo-login-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ===== USER DROPDOWN STYLING ===== */
.navbar-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-profile:hover .user-name {
    color: white;
}

.user-profile svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.user-profile:hover svg {
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

/* open state (Bootstrap-like) */
.navbar-user.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--main-color);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-item span {
    flex: 1;
}

/* ===== Navbar-specific dropdown look (glass, dark) ===== */
.navbar .user-profile {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    height: 40px;
}

.navbar .user-profile:hover,
.navbar-user.open .user-profile {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar .user-name,
.navbar .user-profile svg {
    color: #ffffff;
}

.navbar .user-dropdown {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffd54f;
}

.navbar .dropdown-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
}

/* ===== Mobile user dropdown inside nav-menu ===== */
.mobile-user {
    width: 100%;
}

.mobile-user-toggle {
    width: 100%;
    justify-content: space-between;
}

.mobile-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-user-menu {
    display: none;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 50vh;
    overflow-y: auto;
}

.mobile-user.open #mobileUserMenu,
.mobile-user.open .mobile-user-menu {
    display: block;
}

.mobile-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: 0;
    color: var(--text-primary);
    border-radius: 10px;
}

.mobile-subitem:hover {
    background: var(--bg-secondary);
}

.mobile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

[data-theme="dark"] .mobile-user-menu {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.logout-btn {
    color: var(--secondary-color) !important;
}

.logout-btn:hover {
    background: var(--secondary-color) !important;
    color: white !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .user-profile {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .user-dropdown {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notifications-panel.active,
.cart-panel.active {
    right: 0;
}

.notifications-header,
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.notifications-header h3,
.cart-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-panel {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
}

.close-panel i {
    width: 16px;
    height: 16px;
}

.notifications-list,
.cart-items {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
}

.notification-item,
.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: color-mix(in srgb, var(--main-color) 4%, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.notification-item:hover,
.cart-item:hover {
    background: color-mix(in srgb, var(--main-color) 8%, rgba(255, 255, 255, 0.1));
    border-color: var(--main-alpha-30);
}

.notification-item.unread {
    border-left: 3px solid var(--main-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 102, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    flex-shrink: 0;
}

.notification-icon i {
    width: 20px;
    height: 20px;
    display: block;
}

/* Ensure panel icons are visible */
.notification-icon [data-lucide],
.cart-item-image [data-lucide],
.mark-all-read [data-lucide],
.checkout-btn [data-lucide],
.close-panel [data-lucide] {
    display: block !important;
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.notification-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.cart-item-image i {
    width: 24px;
    height: 24px;
}

.cart-item-image.js-course {
    background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
    color: #000;
}

.cart-item-image.react-course {
    background: linear-gradient(135deg, #61dafb 0%, #21d4fd 100%);
    color: #000;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cart-item-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

.cart-item-price {
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-item:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.remove-item i {
    width: 16px;
    height: 16px;
}

.notifications-footer,
.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mark-all-read {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.mark-all-read i {
    width: 16px;
    height: 16px;
}

.mark-all-read:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--main-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.cart-total span:first-child {
    color: white;
    font-weight: 500;
}

.total-price {
    color: var(--main-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.checkout-btn i {
    width: 16px;
    height: 16px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/builder/templates/home_10/assets/images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.1);
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    animation: heroContentFadeIn 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xl);
    line-height: 1.2;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    font-weight: 800 !important;
    display: inline !important;
    position: relative;
    /* solid fallback */
    color: #ff6a00;
    /* gradient text override */
    background: linear-gradient(90deg, #ff6a00, #ff2d55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6600, #E80009);
    border-radius: 2px;
    opacity: 0.8;
}

/* Dark theme hero highlight */
[data-theme="dark"] .hero-highlight {
    background: linear-gradient(90deg, #ff8a3d, #ff4d6d);
}

[data-theme="dark"] .hero-highlight::after {
    background: linear-gradient(90deg, #FF6600, #E80009);
    opacity: 1;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   Top Courses Section
   ===================== */
.courses-section {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

/* Decorative background for Top Courses */
.courses-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 1) 100%),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    transform: scale(1.02);
}

[data-theme="dark"] .courses-section::before {
    background-image:
        linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.7) 60%, rgba(15, 15, 15, 1) 100%),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1920&auto=format&fit=crop');
    opacity: 0.25;
}

.courses-container {
    position: relative;
    z-index: 1;
}

.courses-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Header */
.courses-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 20px);
}

.courses-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

/* Brush Animation for Courses Title */
/* Unified brush title styles for all sections */
.brush-wrap {
    position: relative;
    display: inline-block;
    padding: 0.75rem 1rem;
}

.brush-wrap:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    clip-path: url(#with-us-clip);
    filter: drop-shadow(0 8px 18px rgba(234, 6, 9, 0.35));
    border-radius: 6px;
}

.brush-wrap.brush-wrap--indefinite:before {
    clip-path: url(#with-us-clip-indefinite);
}

.brush-label {
    display: inline-block;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    padding: 10px 18px;
    position: relative;
    z-index: 1;
}

.courses-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Swiper Container */
.courses-swiper-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    /* More space for navigation buttons */
}

.courses-swiper {
    width: 100%;
    overflow: hidden;
    /* prevent horizontal page scroll */
    position: relative;
    padding: 40px 0;
}

.courses-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 0;
    align-items: stretch;
}

/* Course Cards */
.course-card {
    flex: 0 0 auto;
    padding: 0 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.course-card-inner {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    height: auto;
    /* avoid stretching beyond content */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 500px;
}

.course-card:hover .course-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: clamp(200px, 50vw, 360px);
    overflow: hidden;
    border-radius: 20px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: var(--space-lg);
    flex: 1 1 auto;
}

.course-content .course-title-link {
    text-decoration: none !important;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

[dir="rtl"] .course-title {
    text-align: end;
}

.course-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.course-tag:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.course-tag svg {
    width: 14px;
    height: 14px;
    display: block !important;
}

/* Course Info */
.course-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-info-item svg {
    width: 16px;
    height: 16px;
    display: block !important;
    color: var(--accent-primary);
}

/* Course Button */
.course-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    margin-top: auto;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.course-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-2px);
}

/* Navigation Buttons */
.courses-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    left: 0;
    right: 0;
}

.courses-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.courses-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), #ff6b35);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.courses-nav-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.courses-nav-btn:hover::before {
    opacity: 1;
}

.courses-nav-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.courses-nav-btn:hover svg {
    color: white;
}

.courses-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.courses-nav-btn.is-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.courses-nav-btn svg {
    width: 20px;
    height: 20px;
    display: block !important;
}

/* Pagination */
.courses-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.courses-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d5db;
    opacity: 1;
    transition: width .25s ease, background .25s ease, transform .25s ease;
}

.courses-bullet.active {
    width: 44px;
    background: var(--accent-primary);
}

[data-theme="dark"] .courses-bullet {
    background: #374151;
}

[data-theme="dark"] .courses-bullet.active {
    background: #ff6b35;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .courses-swiper-container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .courses-swiper-container {
        padding: 0 40px;
    }

    .course-card {
        flex: 0 0 50%;
        padding: 0 12px;
    }

    .courses-navigation {
        display: flex;
    }
}

@media (max-width: 768px) {
    .courses-swiper-container {
        padding: 0 var(--space-md);
    }

    .course-card {
        flex: 0 0 100%;
        padding: 0 8px;
    }

    .course-content {
        padding: var(--space-md);
    }

    .course-content .course-title-link {
        text-decoration: none !important;
    }

    .course-title {
        font-size: 1.2rem;
    }

    .course-description {
        font-size: 0.9rem;
    }

    .courses-swiper {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .courses-section {
        padding: clamp(40px, 6vw, 80px) 0;
    }

    .courses-header {
        margin-bottom: var(--space-xl);
    }

    .course-content {
        padding: var(--space-sm);
    }

    .course-tags {
        gap: 4px;
    }

    .course-tag {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .course-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .courses-wrapper {
    direction: rtl;
}

[dir="rtl"] .course-tags {
    flex-direction: row-reverse;
}

[dir="rtl"] .course-info-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .courses-navigation {
    flex-direction: row-reverse;
}

/* Light Theme */
[data-theme="light"] .courses-section {
    background: #ffffff;
}

[data-theme="light"] .course-card-inner {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .course-card:hover .course-card-inner {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .course-title {
    color: #1f2937;
}

[data-theme="light"] .course-description {
    color: #6b7280;
}

[data-theme="light"] .course-tag {
    background: #fef3f2;
    color: var(--accent-primary);
    border: 1px solid #fed7d3;
}

[data-theme="light"] .course-info-item {
    color: #6b7280;
}

[data-theme="light"] .course-info-item svg {
    color: var(--accent-primary);
}

[data-theme="light"] .courses-nav-btn {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .courses-bullet {
    background: #d1d5db;
}

[data-theme="light"] .courses-bullet.active {
    background: var(--accent-primary);
}

/* Dark Theme */
[data-theme="dark"] .courses-section {
    background: #0f0f0f;
}

[data-theme="dark"] .course-card-inner {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .course-card:hover .course-card-inner {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .course-title {
    color: #ffffff;
}

[data-theme="dark"] .course-description {
    color: #d1d5db;
}

[data-theme="dark"] .course-tag {
    background: var(--secondary-color);
    color: #ffffff;
    border: 1px solid var(--main-color);
}

[data-theme="dark"] .course-info-item {
    color: #d1d5db;
}

[data-theme="dark"] .course-info-item svg {
    color: var(--secondary-color);
}

[data-theme="dark"] .courses-nav-btn {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .courses-bullet {
    background: #374151;
}

[data-theme="dark"] .courses-bullet.active {
    background: var(--main-color);
}

/* =====================
   Benefits Section
   ===================== */
.benefits-section {
    position: relative;
    padding: clamp(48px, 7vw, 96px) 0;
    overflow: hidden;
}

.benefits-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.benefits-heading {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

/* benefits header uses the unified brush styles above */

.benefits-subtitle {
    margin: 18px auto 0;
    max-width: 980px;
    color: var(--muted-foreground, rgba(88, 87, 87, 0.85));
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.6;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.2vw, 24px);
    margin-top: clamp(24px, 4vw, 40px);
}

.benefit-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(22px, 2.2vw, 28px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.benefit-card .benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.benefit-card .benefit-icon i {
    width: 28px;
    height: 28px;
    color: #fff;
}

.benefit-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #fff;
    margin: 8px 0 10px;
}

.benefit-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
}

.benefit-card-shape {
    position: absolute;
    top: -20px;
    inset-inline-end: -15px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

/* Color themes per card */
.card-purple {
    background: linear-gradient(135deg, #7B2FFF 0%, #5C27E6 50%, #3C1DBA 100%);
}

.card-purple .benefit-icon {
    background: linear-gradient(135deg, #E44BD2, #7B2FFF);
}

.card-green {
    background: linear-gradient(135deg, #00C6A2 0%, #00A77E 50%, #008B66 100%);
}

.card-green .benefit-icon {
    background: linear-gradient(135deg, #35E3C2, #00C6A2);
}

.card-orange {
    background: linear-gradient(135deg, #FF6A2A 0%, #FF4B1F 50%, #E63900 100%);
}

.card-orange .benefit-icon {
    background: linear-gradient(135deg, #FF8B4A, #FF4B1F);
}

/* Decorative shapes */
.benefits-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 22px;
    filter: blur(0.2px);
}

.benefits-shape-1 {
    width: 110px;
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.18), rgba(255, 128, 0, 0.10));
    bottom: 32px;
    inset-inline-start: 22px;
    transform-origin: 50% 50%;
    animation: benefits-spin-a 22s linear infinite;
}

.benefits-shape-2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 104, 0, 0.28), rgba(110, 52, 0, 0.10));
    top: 18px;
    inset-inline-end: 24px;
    border-radius: 50%;
    transform-origin: 50% 50%;
    animation: benefits-spin-b 28s linear infinite;
}

.benefits-shape-3 {
    width: 92px;
    height: 92px;
    background: rgba(255, 255, 255, 0.08);
    top: 36%;
    inset-inline-start: 6%;
    border-radius: 18px;
}

/* Light theme adjustments */
[data-theme="light"] .benefits-section {
    background: #ffffff;
}

[data-theme="light"] .benefit-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .benefit-title {
    color: #1a1a1a;
}

[data-theme="light"] .benefit-text {
    color: #444;
}

[data-theme="light"] .benefits-subtitle {
    color: #404040;
}

/* Dark theme */
[data-theme="dark"] .benefits-section {
    background: #111111;
}

[data-theme="dark"] .benefits-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL support */
[dir="rtl"] .benefits-subtitle {
    text-align: center;
}

[dir="rtl"] .benefit-card-shape {
    inset-inline-start: 18px;
    inset-inline-end: auto;
}

/* Shapes animations */
@keyframes benefits-spin-a {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes benefits-spin-b {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}


/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform-origin: left;
    transform: scaleX(0);
    z-index: var(--z-fixed);
    transition: transform var(--transition-fast);
}

/* ===== ANIMATIONS ===== */
@keyframes navbarSlideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBackgroundMove {

    0%,
    100% {
        transform: scale(1.1) translateX(0);
    }

    50% {
        transform: scale(1.15) translateX(-10px);
    }
}

/* ===== RTL/LTR SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* RTL Navbar Layout */
[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-logo {
    order: 3;
}

[dir="rtl"] .logo-fox {
    margin-left: var(--space-sm);
    margin-right: 0;
}

/* Desktop Logo RTL/LTR */
@media (min-width: 1201px) {
    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

[dir="rtl"] .navbar-icons {
    order: 2;
}

[dir="rtl"] .navbar-controls {
    order: 1;
}

/* LTR Navbar Layout */
[dir="ltr"] .navbar-logo {
    order: 1;
    flex-direction: row;
}

[dir="ltr"] .logo-fox {
    margin-right: var(--space-sm);
    margin-left: 0;
}

/* Desktop Logo RTL/LTR */
@media (min-width: 1201px) {
    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

[dir="ltr"] .navbar-icons {
    order: 2;
}

[dir="ltr"] .navbar-controls {
    order: 3;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Desktop */
@media (min-width: 1201px) {
    .logo-fox {
        width: 40px;
        height: 40px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

/* Large Desktop */
@media (max-width: 1200px) {
    .navbar {
        width: 98%;
    }

    .logo-fox {
        width: 38px;
        height: 38px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .navbar-container {
        padding: var(--space-sm) var(--space-lg);
    }

    .navbar-content {
        gap: var(--space-md);
    }

    .hero-content {
        padding: 0 var(--space-lg);
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }

    .hero-description {
        font-size: clamp(1rem, 2vw, 1.15rem);
    }

    .hero-buttons {
        gap: var(--space-md);
    }

    .btn-large {
        max-width: 300px;
    }

    .logo-fox {
        width: 36px;
        height: 36px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-sm);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-sm);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .navbar-buttons {
        gap: var(--space-sm);
    }

    .btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        order: 1;
        width: 24px;
        height: 24px;
    }

    /* Hide desktop icons */
    .navbar-icons {
        display: none !important;
    }

    /* Hide desktop buttons on mobile only */
    .navbar-buttons {
        display: none !important;
    }

    /* Hide user dropdown on mobile */
    .navbar-user {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        top: var(--space-sm);
        width: 95%;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-container {
        padding: var(--space-sm) var(--space-md);
        border-radius: 50px;
        margin-top: 20px;
    }

    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-sm);
        min-height: 50px;
    }

    /* Mobile Menu Toggle - Left */


    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    /* Logo - Center */
    .navbar-logo {
        order: 2;
        flex: 1;
        justify-content: start;
        gap: var(--space-sm);
    }

    .logo-fox {
        width: 32px;
        height: 32px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-xs);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-xs);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    /* Mobile Right Section */
    .navbar-controls {
        order: 3;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-content {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: var(--space-lg);
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: var(--space-xl);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }

    /* Mobile Menu Responsive */
    .mobile-menu-content {
        max-width: 320px;
        padding: 50px var(--space-lg) var(--space-lg) var(--space-lg);
    }

    .mobile-menu-item {
        padding: var(--space-sm);
    }

    .menu-item-icon {
        width: 35px;
        height: 35px;
    }

    .menu-item-icon i {
        width: 18px;
        height: 18px;
    }

    .menu-item-text {
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar {
        width: 98%;
    }

    .navbar-container {
        padding: var(--space-xs) var(--space-sm);
        border-radius: 40px;
    }

    .navbar-content {
        gap: var(--space-xs);
        min-height: 45px;
    }

    .logo-fox {
        width: 28px;
        height: 28px;
    }

    [dir="rtl"] .logo-fox {
        margin-left: var(--space-xs);
        margin-right: 0;
    }

    [dir="ltr"] .logo-fox {
        margin-right: var(--space-xs);
        margin-left: 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .navbar-controls::before {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
    }

    .theme-toggle-container {
        width: 35px;
    }

    .theme-toggle-thumb {
        width: 14px;
        height: 14px;
        top: 8px;
        left: 8px;
    }

    .mobile-menu-toggle {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle span {
        width: 16px;
        height: 1.5px;
    }

    /* Mobile Menu Extra Small */
    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: var(--space-md);
        line-height: 1.3;
    }

    .hero-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        margin-bottom: var(--space-lg);
        line-height: 1.5;
    }

    .hero-buttons {
        gap: var(--space-sm);
    }

    .btn-large {
        max-width: 260px;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }

    .mobile-menu-content {
        max-width: 300px;
        padding: 50px var(--space-md) var(--space-md) var(--space-md);
    }

    .mobile-menu-item {
        padding: var(--space-xs);
    }

    .menu-item-icon {
        width: 32px;
        height: 32px;
    }

    .menu-item-icon i {
        width: 16px;
        height: 16px;
    }

    .menu-item-text {
        font-size: 0.85rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RTL PANELS SUPPORT ===== */
[dir="rtl"] .notifications-panel,
[dir="rtl"] .cart-panel {
    right: auto;
    left: -400px;
}

[dir="rtl"] .notifications-panel.active,
[dir="rtl"] .cart-panel.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .notification-item.unread {
    border-left: none;
    border-right: 3px solid var(--main-color);
}

/* =====================
   Teachers Section
   ===================== */
.teachers-section {
    position: relative;
    padding: clamp(64px, 8vw, 120px) 0;
    /* Dark teal background with subtle warm glow */
    background:
        radial-gradient(600px 300px at 85% 110%, rgba(255, 0, 90, 0.18) 0%, rgba(255, 0, 90, 0) 70%),
        radial-gradient(500px 260px at 15% 110%, rgba(255, 81, 0, 0.22) 0%, rgba(255, 81, 0, 0) 70%),
        linear-gradient(180deg, #0e2b36 0%, #0a1f29 100%);
}

/* Particles background layer */
.teachers-section .particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.particles-count {
    position: absolute;
    top: 48px;
    left: 8px;
    z-index: 2;
    background: rgba(0, 0, 34, .6);
    color: #13E8E9;
    font-size: .8em;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 700
}

.teachers-container {
    position: relative;
    z-index: 1
}

/* Decorative shapes behind teachers cards */
.teachers-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-square-top-right {
    width: 88px;
    height: 88px;
    right: clamp(40px, 8vw, 120px);
    top: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff6a00 0%, #ea0609 100%);
    box-shadow: 0 18px 48px rgba(234, 6, 9, 0.28);
}

.shape-circle-bottom-left {
    width: 90px;
    height: 90px;
    left: clamp(20px, 6vw, 80px);
    bottom: 90px;
    border-radius: 999px;
    background: radial-gradient(closest-side, #ff2361 0%, #ff236100 70%);
    /* box-shadow: 0 18px 48px rgba(255, 35, 97, 0.35); */
}

.shape-square-outline-bottom-right {
    width: 86px;
    height: 86px;
    right: clamp(30px, 6vw, 100px);
    bottom: 80px;
    border-radius: 12px;
    border: 4px solid rgba(255, 35, 97, 0.6);
    box-shadow: 0 10px 30px rgba(255, 35, 97, 0.25);
}

.teachers-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.teachers-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 52px);
}

/* teachers header inherits .brush-wrap/.brush-label */

.teachers-subtitle {
    margin: 12px auto 0;
    max-width: 980px;
    color: rgba(255, 255, 255, .85);
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
}

.teachers-swiper-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 18px;
    padding: 0 80px;
}

.teachers-swiper {
    width: 100%;
    overflow: hidden;
    /* prevent horizontal page scroll */
    position: relative;
    padding: 40px 0;
}

.teachers-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 0;
    align-items: stretch;
}

.teacher-card {
    flex: 0 0 auto;
    padding: 0 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.teacher-card-inner {
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 60%, var(--secondary-color) 100%);
    border-radius: 32px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 500px;
}

.teacher-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.teacher-media img {
    width: 100%;
    height: clamp(240px, 28vw, 320px);
    object-fit: cover;
    display: block;
}

.teacher-media .media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 24, 0) 0%, rgba(10, 20, 24, .45) 55%, rgba(10, 20, 24, .85) 100%);
}

.teacher-body {
    padding: 18px 6px 4px;
}

.teacher-body a,
.teacher-meta a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    color: #fff;
}

.teacher-name {
    transition: all 0.3s ease;
}

.teacher-name:hover,
.teacher-meta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: #eeeeee;
}



.teacher-name {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.teacher-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    opacity: .95;
}

.teacher-lang {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
}

.teacher-lang svg {
    color: #fff;
}

/* Pagination */
.teachers-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 32px;
}

.teachers-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .25s ease, background .25s ease;
}

.teachers-bullet.active {
    width: 48px;
    background: var(--main-color);
}

/* CTA */
.teachers-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Dark mode adjustments */
[data-theme="dark"] .teachers-subtitle {
    color: rgba(255, 255, 255, .85);
}

/* RTL fixes */
[dir="rtl"] .teachers-wrapper {
    direction: rtl;
}

/* Responsive */
@media (max-width: 1200px) {
    .teachers-swiper-container {
        padding: 0 48px;
    }
}

@media (max-width: 1024px) {
    .teacher-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .teacher-card {
        max-width: 300px;
        padding: 0 12px;
    }

    .teachers-swiper-container {
        padding: 0 24px;
    }

    .teacher-card-inner {
        padding: 16px;
        border-radius: 24px;
    }

    .teacher-media {
        height: 140px;
        border-radius: 18px;
    }

    .teacher-name {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .teacher-lang {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .teacher-card {
        max-width: 260px;
        padding: 0 6px;
    }

    .teachers-swiper-container {
        padding: 0 16px;
    }

    .teacher-card-inner {
        padding: 12px;
        border-radius: 20px;
    }

    .teacher-media {
        height: 120px;
        border-radius: 16px;
    }

    .teacher-name {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .teacher-lang {
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .teacher-card {
        max-width: 240px;
        padding: 0 4px;
    }

    .teachers-swiper-container {
        padding: 0 12px;
    }

    .teacher-card-inner {
        padding: 10px;
        border-radius: 16px;
    }

    .teacher-media {
        height: 100px;
        border-radius: 12px;
    }

    .teacher-name {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .teacher-lang {
        font-size: 11px !important;
    }
}

/* Teachers bullets indicator */
.teachers-pagination {
    position: relative;
}

.teachers-indicator {
    position: absolute;
    height: 8px;
    background: var(--main-color);
    border-radius: 999px;
    top: 50%;
    transform: translateX(0) translateY(-50%);
    transition: transform .35s cubic-bezier(.25, .46, .45, .94), width .35s cubic-bezier(.25, .46, .45, .94);
    pointer-events: none;
}

/* Ensure swiper wrappers layout consistently across LTR/RTL */
.courses-wrapper,
.teachers-wrapper {
    direction: ltr;
}

[dir="rtl"] .courses-wrapper,
[dir="rtl"] .teachers-wrapper {
    direction: rtl;
}

/* Hero highlight fix */
.hero-title .hero-highlight {
    position: relative;
    font-weight: 800;
    z-index: 1;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.hero-title .hero-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    bottom: -6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    filter: drop-shadow(0 2px 6px rgba(234, 6, 9, 0.25));
    z-index: -1;
}

/* =====================
   Subjects Section
   ===================== */
.subjects-section {
    position: relative;
    padding: clamp(56px, 8vw, 110px) 0;
    background: transparent;
}

/* Decorative SVGs for Subjects Section */
.subjects-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: .12
}

.subjects-deco.deco-atom {
    top: 10%;
    left: 3%;
    width: 120px;
    height: 120px;
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 2
}

.subjects-deco.deco-flask {
    bottom: 12%;
    right: 5%;
    width: 140px;
    height: 140px;
    fill: none;
    stroke: var(--main-color);
    stroke-width: 2
}

.subjects-deco.deco-math {
    top: 30%;
    right: 15%;
    width: 110px;
    height: 110px;
    fill: none;
    stroke: #00c6a2;
    stroke-width: 2
}

.subjects-container {
    position: relative;
    z-index: 1
}

/* =====================
   Promo Orange Section
   ===================== */
.promo-orange {
    background: var(--main-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.promo-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(60px, 8vw, 120px) var(--space-xl);
    position: relative;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    min-height: 500px;
}

[dir="rtl"] .promo-grid {
    grid-template-columns: 1fr 1.1fr;
}

.promo-frame {
    margin: 0;
    transform: rotate(-3deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .15));
    position: relative;
    transform: rotate(-3deg) !important;
    transition: all 0.3s ease;
}

.promo-frame:hover {
    transform: rotate(0deg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.promo-frame-inner {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    border: 3px dashed #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.promo-frame-inner:hover {
    border: 3px solid #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.promo-frame-cutout {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ff6a00;
    border-radius: 50%;
    z-index: 2;
}

.promo-image {
    width: 100%;
    height: clamp(300px, 40vw, 370px);
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #fff;
    padding: 20px;
    transition: all 0.3s ease;
}

.promo-image:hover {
    transform: scale(1.05);
}

.promo-quote {
    position: absolute;
    top: -28px;
    left: -28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff url('/builder/templates/home_10/assets/images/quotes.png') center center / 70% no-repeat;
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    z-index: 4;
}

/* Using a background image now; no inner SVG needed */

.promo-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-play-btn:hover {
    background: rgba(0, 0, 0, .8);
    transform: scale(1.1);
}

.promo-play-line {
    width: 60px;
    height: 2px;
    background: white;
    position: relative;
}

.promo-play-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6a00;
    border-radius: 50%;
}

.promo-content {
    color: #fff;
    padding-left: 20px;
}

[dir="rtl"] .promo-content {
    padding-left: 0;
    padding-right: 20px;
}

.promo-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.promo-subtitle {
    margin: 0 0 30px 0;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.3;
}

.promo-subtitle .highlight {
    color: #ffd54f;
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
    font-weight: 600;
}

.promo-subtitle .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 8px;
    background: linear-gradient(90deg, #ffd54f, #ffb300);
    border-radius: 4px;
    transform: skewY(-1deg);
}

.promo-platform-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.promo-platform-line {
    width: 40px;
    height: 2px;
    background: white;
    margin: 25px 0 15px 0;
    opacity: 0.8;
}

.promo-platform {
    font-size: clamp(18px, 2vw, 22px);
    opacity: 0.9;
    font-weight: 500;
    color: #fff;
}

.promo-btn {
    display: inline-block;
    background: #fff;
    color: var(--secondary-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.promo-btn:hover {
    background: #ffd54f;
    color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.promo-deco {
    position: absolute;
    pointer-events: none;
}

.star-top {
    top: 15%;
    right: 15%;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #ffd54f 0 60%, transparent 65% 100%);
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .2));
}

.star-bottom {
    bottom: 20%;
    left: 10%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd54f 0 60%, transparent 65% 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.sparkle-1 {
    top: 25%;
    left: 8%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.7;
}

.sparkle-2 {
    top: 60%;
    right: 25%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.6;
}

.sparkle-3 {
    bottom: 35%;
    right: 8%;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #ffd54f 0 50%, transparent 55% 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.doodle-lines {
    bottom: 8%;
    right: 5%;
    width: 120px;
    height: 16px;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .4) 0px,
            rgba(255, 255, 255, .4) 8px,
            transparent 8px,
            transparent 16px);
    opacity: 0.6;
}

.promo-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd54f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    border: 3px solid #fff;
}

.badge-icon {
    font-size: 24px;
}

/* Animations */
.promo-frame,
.promo-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.promo-visible .promo-frame,
.promo-visible .promo-content {
    opacity: 1;
    transform: translateY(0);
}

.promo-content {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .promo-frame {
        order: -1;
        transform: rotate(-2deg);
        max-width: 400px;
        margin: 0 auto;
    }

    .promo-content {
        padding-left: 0;
        padding-right: 0;
    }

    [dir="rtl"] .promo-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .promo-orange {
        min-height: auto;
        padding: 60px 0;
    }

    .promo-container {
        padding: 40px var(--space-lg);
    }

    .promo-frame {
        max-width: 320px;
    }

    .promo-play-overlay {
        gap: 15px;
    }

    .promo-play-btn {
        width: 60px;
        height: 60px;
    }

    .promo-play-line {
        width: 40px;
    }
}

/* Dark theme */
[data-theme="dark"] .promo-orange {
    background: var(--main-color);
}

[data-theme="dark"] .promo-subtitle .highlight {
    color: #111;
}

[data-theme="dark"] .promo-frame-inner {
    background: #f8f8f8;
}

[data-theme="dark"] .promo-frame-cutout {
    background: #e55a00;
}

.subjects-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.subjects-header {
    text-align: center;
    margin-bottom: clamp(24px, 5vw, 40px);
}

/* subjects header inherits .brush-wrap/.brush-label */

.subjects-subtitle {
    margin: 12px auto 0;
    max-width: 980px;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
}

/* Subjects Swiper */
.subjectsSwiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 20px;
}

.subjectsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.subject-card {
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: stretch;
}

.subject-card-inner {
    background: var(--bg-primary);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.subject-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.subject-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.subject-title a{
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    margin: 0 0 6px;
}

.subject-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.subject-meta svg {
    opacity: .9;
}

.swiper-wrapper {
    margin-top: 40px;
}

/* Pagination */
.subjectsSwiper .swiper-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 0;
    bottom: auto;
}

.subjectsSwiper .swiper-pagination .subjects-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 999px;
    transition: width .25s ease, background .25s ease;
    cursor: pointer;
}

.subjectsSwiper .swiper-pagination .subjects-bullet.active {
    width: 48px;
    background: var(--main-color);
}

/* Dark */
[data-theme="dark"] .subject-card-inner {
    background: #1C1C1C !important;
    border-color: #2a2a2a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .subject-title a{
    color: #fff;
}

[data-theme="dark"] .subject-meta {
    color: #d1d5db;
}

/* RTL */
[dir="rtl"] .subjects-wrapper {
    direction: ltr;
}

/* Responsive */
@media (max-width: 1024px) {
    .subject-card {
        flex: 0 0 50%;
    }

    .subjects-swiper-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .subject-card {
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .subjects-swiper-container {
        padding: 0 var(--space-md);
    }
}

/* Subjects card lifted icon */
.subject-card-inner {
    position: relative;
}

.subject-icon {
    position: absolute;
    top: -44px;
    /* lift more to appear outside the card */
    left: 70px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 18px 36px rgba(234, 6, 9, 0.22);
    /* create cut-out ring */
    z-index: 3;
    /* ensure it stays above the card */
}

[dir="rtl"] .subject-icon {
    left: 50%;
    transform: translateX(-50%);
}

.subject-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.subject-body {
    padding-top: 56px;
}

.subject-body a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.subject-body a .subject-meta {
    transition: all 0.3s ease;
}

.subject-body a:hover .subject-title a{
    color: var(--main-color);
}

/* ==== Benefits theme overrides (match reference) ==== */
[data-theme="light"] .benefit-card.card-purple {
    background: linear-gradient(135deg, #7B2FFF 0%, #5C27E6 50%, #3C1DBA 100%);
}

[data-theme="light"] .benefit-card.card-green {
    background: linear-gradient(135deg, #00C6A2 0%, #00A77E 50%, #008B66 100%);
}

[data-theme="light"] .benefit-card.card-orange {
    background: linear-gradient(135deg, #FF6A2A 0%, #FF4B1F 50%, #E63900 100%);
}

[data-theme="light"] .benefit-title {
    color: #ffffff;
}

[data-theme="light"] .benefit-text {
    color: rgba(255, 255, 255, .90);
}

[data-theme="dark"] .benefit-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .benefit-title {
    color: #ff6a2a;
}

[data-theme="dark"] .benefit-text {
    color: rgba(255, 255, 255, .85);
}

/* =====================
   Footer Styles
   ===================== */
.site-footer {
    --footer-bg: #0e2430;
    --footer-text: #e6f0f5;
    --footer-muted: rgba(230, 240, 245, .7);
    --footer-line: rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(11, 29, 39, 1) 0%, rgba(10, 26, 35, 1) 100%);
    padding: clamp(48px, 8vw, 72px) 16px 28px;
    color: var(--footer-text);
    text-align: center;
}

[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #0e2430 0%, #0a1a23 100%);
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #08141b 0%, #071219 100%);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo {
    width: clamp(80px, 12vw, 120px);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .3));
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 8px 0 28px;
}

[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

.footer-social .social-btn {
    position: relative;
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(145deg, #404D5A 0%, #313C47 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 6px 16px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    overflow: hidden;
}

.footer-social .social-btn::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.footer-social .social-btn:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .34);
}

.footer-social i {
    width: 28px;
    height: 28px;
}

.footer-social .facebook:hover {
    background: linear-gradient(145deg, #0061FF 0%, #0047E1 50%, #0037B8 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(0, 93, 255, .45);
}

.footer-social .telegram:hover {
    background: linear-gradient(145deg, #36C2FF 0%, #1FA9EE 50%, #1489D6 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(20, 137, 214, .45);
}

.footer-social .instagram:hover {
    background: linear-gradient(145deg, #FF8A00 0%, #FF3A5A 45%, #C13584 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(193, 53, 132, .45);
}

.footer-social .youtube:hover {
    background: linear-gradient(145deg, #FF5A5F 0%, #FF2D2D 50%, #E00000 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(224, 0, 0, .45);
}

.footer-tagline {
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 28px);
    line-height: 1.5;
    color: var(--footer-text);
    margin: 0 auto 28px;
    max-width: 1100px;
}

[dir="rtl"] .footer-tagline {
    direction: rtl;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: var(--footer-line);
    width: 100%;
    margin: 16px 0 20px;
    position: relative;
}

.footer-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

.copyright {
    color: var(--footer-muted);
    font-size: clamp(14px, 1.8vw, 18px);
}

.copyright .brand {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 800;
    margin: 0 6px;
}

.copyright .year {
    opacity: .9;
    margin-inline-start: 6px;
}

@media (max-width: 768px) {
    .footer-social .social-btn {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .footer-divider {
        width: 100%;
        margin: 16px 0 20px;
    }
}

/* ===== Back To Top Button ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease, background .25s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(0) scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme="dark"] .back-to-top {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
    position: relative;
    padding: clamp(56px, 7vw, 110px) 0;
}

.faq-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.faq-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.faq-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.faq-question .faq-chevron {
    transition: transform .25s ease;
}

.faq-item[aria-expanded="true"],
.faq-item.open {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.faq-answer {
    display: none;
    padding: 0 22px 18px;
    color: var(--text-secondary);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-answer p {
    color: #515151;
}

[data-theme="dark"] .faq-item.open .faq-answer p {
    color: #e1e1e1;
}

.faq-item.open .faq-question .faq-chevron {
    transform: rotate(180deg);
}

[data-theme="dark"] .faq-item {
    background: #171717;
    border-color: #2a2a2a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .faq-subtitle {
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
    }
}

/* =====================
   Classrooms Section
   ===================== */
.classrooms-section {
    position: relative;
    padding: clamp(56px, 7vw, 110px) 0;
}

/* =====================
   Download App Section
   ===================== */
.download-section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    overflow: hidden;
    min-height: 600px;
}

/* Background layers for 3D effect */
.download-bg-main {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.download-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 464px;
    z-index: 1;
    transition: all 0.3s ease;
}

.download-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Light Theme */
.download-section[data-theme="light"] .download-bg-main {
    background: #ffffff;
}

.download-section[data-theme="light"] .download-bg-overlay {
    background: linear-gradient(135deg, #FF8A65 0%, #FFB27A 100%);
}

.download-section[data-theme="light"] .download-bg-pattern {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0 2px, transparent 2px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.25) 0 1.5px, transparent 1.5px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
}

/* Dark Theme */
.download-section[data-theme="dark"] .download-bg-main {
    background: #1a2332;
}

.download-section[data-theme="dark"] .download-bg-overlay {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
}

.download-section[data-theme="dark"] .download-bg-pattern {
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px),
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
        radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.12) 0 1.5px, transparent 1.5px);
    background-size: 60px 60px, 40px 40px, 50px 50px;
}

/* Theme Toggle */
.download-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: #FF6B35;
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0;
}

.download-section[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
}

.download-section[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
}

/* Container */
.download-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 3;
}

/* Full-bleed bg for the inner, centered container */
.download-container::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* full screen width */
    height: 464px;
    /* the band height from the design */
    top: 0;
    /* start at container top */
    background: linear-gradient(135deg, #FFE5D9 0%, #FFF5EB 100%);
    z-index: -1;
    /* sit behind the content */
    pointer-events: none;
}

/* switch bg with theme */
.download-section[data-theme="dark"] .download-container::before {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 100%);
}

@media (max-width: 1024px) {
    .download-container::before {
        display: none;
    }
}

.download-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 100px);
    height: 464px;
}

.download-grid .download-copy {
    order: 1;
    flex: 1.1 1 0;
}

.download-grid .download-visual {
    order: 2;
    flex: 1 1 0;

}

[dir="rtl"] .download-grid .download-copy {
    order: 2;
}

[dir="rtl"] .download-grid .download-visual {
    order: 1;
}

/* Text Content */
.download-copy {
    position: relative;
    z-index: 4;
}

.download-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.download-section[data-theme="light"] .download-title {
    color: #2C3E50;
}

.download-section[data-theme="dark"] .download-title {
    color: #FFFFFF;
}

.title-text {
    display: inline;
}

.title-accent {
    color: #FF6B35;
    display: inline;
}

.download-icon {
    color: #FF6B35;
    flex-shrink: 0;
}

.download-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 60ch;
}

.download-section[data-theme="light"] .download-subtitle {
    color: #5A6C7D;
}

.download-section[data-theme="dark"] .download-subtitle {
    color: #E2E8F0;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dl-btn {
    display: flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.dl-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dl-btn:hover::before {
    left: 100%;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
}

.btn-text {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.btn-platform {
    font-size: 16px;
    font-weight: 700;
}

.dl-btn.windows {
    background: #0078d4;
}

.dl-btn.huawei {
    background: #111111;
}

.dl-btn.google {
    background: #01875f;
}

.dl-btn.apple {
    background: #000000;
}

/* Visual Section with 3D Effect */
.download-visual {
    position: relative;
    z-index: 2;
}

.phone-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.phone-hand {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.phone-hand:hover {
    transform: translateZ(0) scale(1.02);
}

/* Floating Decorative Elements */
.floating-download-icon {
    position: absolute;
    top: 15%;
    right: -15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #FF8A65, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    animation: float 3s ease-in-out infinite;
    z-index: 4;
}

.deco-star {
    position: absolute;
    color: #FF6B35;
    animation: float 4s ease-in-out infinite;
}

.star-1 {
    top: 60%;
    left: -10%;
    animation-delay: -1s;
}

.star-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: -2s;
}

.deco-rect {
    position: absolute;
    border: 2px solid #FFB27A;
    border-radius: 8px;
    animation: float 5s ease-in-out infinite;
}

.rect-1 {
    width: 30px;
    height: 40px;
    bottom: 30%;
    left: -5%;
    animation-delay: -1.5s;
}

.rect-2 {
    width: 25px;
    height: 35px;
    top: 40%;
    right: -8%;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .download-grid {
        flex-direction: column;
        gap: 40px;
        height: auto;
        margin: 0;
    }

    .download-container::before {
        height: 300px;
    }

    .download-visual {
        order: -1;
    }

    .download-bg-overlay {
        width: 100%;
        height: 300px;
        top: auto;
        bottom: 0;
    }

    .phone-container {
        max-width: 400px;
    }

    [dir="rtl"] .download-visual {
        order: -1;
    }

    [dir="rtl"] .download-grid .download-copy {
        order: 1;
    }
}

@media (max-width: 768px) {
    .download-section {
        padding: clamp(60px, 8vw, 100px) 0;
    }

    .download-container {
        padding: 30px var(--space-lg) 0;
    }

    .download-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dl-btn {
        min-width: 140px;
        padding: 10px 16px;
    }

    .floating-download-icon {
        width: 60px;
        height: 60px;
        right: -10%;
    }
}

@media (max-width: 480px) {
    .download-container::before {
        height: 240px;
    }

    .download-container {
        margin: 0 5px;
    }

    .download-grid {
        margin: 0 5px;
        gap: 30px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .dl-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 16px;
    }

    .download-title {
        font-size: clamp(28px, 6vw, 48px);
        text-align: center;
    }

    .download-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        text-align: center;
    }

    .phone-container {
        max-width: 300px;
    }

    .floating-download-icon {
        width: 50px;
        height: 50px;
    }
}

.classrooms-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
}

.classrooms-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.classrooms-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-top: 10px;
}

.classrooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    position: relative;
}

.classroom-card {
    position: relative;
    border-radius: 26px;
    padding: 28px;
    background: var(--bg-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.classroom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.classroom-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
}

.classroom-title {
    font-weight: 800;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    color: var(--text-primary);
    margin: 10px 0 12px;
}

.classroom-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(.95rem, 1.9vw, 1.05rem);
    margin-bottom: 18px;
}

.classroom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.classroom-glow {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

/* Color variants */
.classroom-purple {
    background: #2a1042;
}

.classroom-purple .classroom-icon {
    background: linear-gradient(135deg, #9b4dff, #7b2fff);
}

.classroom-purple .classroom-btn {
    background: linear-gradient(135deg, #9b4dff, #7b2fff);
}

.classroom-green {
    background: #113b2f;
}

.classroom-green .classroom-icon {
    background: linear-gradient(135deg, #25d695, #0fb56e);
}

.classroom-green .classroom-btn {
    background: linear-gradient(135deg, #25d695, #0fb56e);
}

.classroom-blue {
    background: #102a4a;
}

.classroom-blue .classroom-icon {
    background: linear-gradient(135deg, #3a8bff, #1f6bff);
}

.classroom-blue .classroom-btn {
    background: linear-gradient(135deg, #3a8bff, #1f6bff);
}

/* Light theme cards */
[data-theme="light"] .classroom-purple {
    background: #efe7fb;
}

[data-theme="light"] .classroom-green {
    background: #e4f8ef;
}

[data-theme="light"] .classroom-blue {
    background: #e6f0ff;
}

[data-theme="light"] .classroom-title {
    color: #0f172a;
}

[data-theme="light"] .classroom-text {
    color: #334155;
}

/* RTL */
[dir="rtl"] .classrooms-subtitle {
    text-align: center;
}

/* Shapes */
.classrooms-shape {
    position: absolute;
    pointer-events: none;
    filter: blur(2px);
    opacity: .9;
}

.shape-a {
    left: -80px;
    bottom: 0px;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 128, 0, .25), rgba(255, 128, 0, .08));
    animation: orbit-a 18s linear infinite;
}

.shape-b {
    right: 8%;
    top: 60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
    animation: orbit-b 26s linear infinite reverse;
}

.shape-c {
    left: 35%;
    top: 68%;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
    animation: orbit-c 22s linear infinite;
}

@keyframes orbit-a {
    0% {
        transform: rotate(0) translateX(0);
    }

    100% {
        transform: rotate(360deg) translateX(0);
    }
}

@keyframes orbit-b {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit-c {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .classrooms-grid {
        grid-template-columns: 1fr;
    }
}

html,
body {
    overflow-x: hidden;
}
